﻿using AutoMapper;
using DataModel.Models;
using NurseServiceApi.DTO;

namespace NurseServiceApi.Map
{
    public class AutoMapConfig : Profile
    {
        public AutoMapConfig()
        {
            //CreateMap<AllStatisticsData, AllStatisticsDataDTO>().ForMember(c => c.IDataType, s => s.MapFrom(c => c.IDataType))
            //    .ForMember(c => c.IIIDataType, s => s.MapFrom(c => c.IIIDataType))
            //    .ForMember(c => c.StartDate, s => s.MapFrom(c => c.StartDate))
            //    .ForMember(c => c.EndDate, s => s.MapFrom(c => c.EndDate))
            //    .ForMember(c => c.Status, s => s.MapFrom(c => c.Status))
            //    .ForMember(c => c.DeptName, s => s.MapFrom(c => c.DeptName))
            //    .ForMember(c => c.HospitalCode, s => s.MapFrom(c => c.HospitalCode));

            CreateMap<AllStatisticsData, AllStatisticsDataDTO>();

        }

    }
}
